package logic.status;

import networking.messages.syncMessages.ValueType;

public class CollidableValueManager extends StatusValueManager<StatusListener> {
	
	public CollidableValueManager() {
		super(StatusListener.class);
	}
	
	@Override
	public StatusValueContainer<StatusListener> getNewContainer(float diff) {
		return new StatusValueContainer<StatusListener>(diff, listenerClass) {
			@Override
			protected String getListenerMethod() { return StatusListener.VALUECHANGED; }
			
			@Override
			protected AbsChangedEvent getEvent(ValueType type, Object newValue) {
				return new StatusChangedEvent(type, newValue);
			}
		};
	}
}